package com.eas.biz.dao.user.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.user.dataobject.ClassDO;
import com.eas.biz.dao.user.interfaces.ClassDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("classDao")
public class ClassDaoImpl extends GenericDaoImpl<ClassDO> implements ClassDao {

    public ClassDO selectById(long id) {
        return selectById("Class.selectById", id);
    }

    public long insert(ClassDO classDo) {
        return insert("Class.add", classDo);
    }

    public int deleteById(long id) {
        return deleteById("Class.deleteById", id);
    }

    public int update(ClassDO classDo) {
        return update("Class.update", classDo);
    }

    public List<ClassDO> selectByQuery(BaseQuery query) {
        return selectByQuery("Class.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("Class.countByQuery", query);
    }

}
